import 'package:beautiful_demo/common/manager/user.dart';
import 'package:beautiful_demo/common/res.dart';
import 'package:beautiful_demo/common/widget/statebar.dart';
import 'package:beautiful_demo/common/widget/widget.dart';
import 'package:beautiful_demo/config.dart';
import 'package:beautiful_demo/mvc/home/child/widget.dart';

import 'controller.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mvc/flutter_mvc.dart';

import 'widget.dart';

///description:我的
class MinePage extends BasePage<MineController> {
  @override
  Widget build(BuildContext context) {
    return SystemStateBar(
      fontTheme: StateBarFontTheme.white,
      child: Container(
        color: Colors.white,
        child: Stack(
          children: [
            Image.asset(
              "images/WechatIMG1091.png",
              fit: BoxFit.fill,
              width: MediaQuery.of(context).size.width,
              height: 160.dp + MediaQuery.of(context).padding.top,
            ),
            SafeArea(
              bottom: true,
              child: Column(
                children: [
                  Container(
                    height: 75.dp,
                  ),

                  InfoWidget(),

                  const Item1(),
                  const ImageWidget("https://img-qn-2.51miz.com/preview/element/00/01/21/98/E-1219897-8D39B8C3.jpg!/quality/90/unsharp/true/compress/true/format/jpg/fh/320")

                  ,SizedBox(height: 80.dp,),
                  Center(
                    child: GestureDetector(
                        onTap: c.onLoginOutClick,
                        child: Container(
                          height: 40.dp,
                          alignment: Alignment.center,
                          width: 120.dp,
                          decoration: BoxDecoration(color: Colors.white,borderRadius: BorderRadius.circular(30.dp),border: Border.all(color: Color(0xffeeeeee))),
                          child: Text(
                            "退出登录",
                            style: resTextStyle.copyWith(color: Color(0xff666666),fontSize: 16.sp),
                          ),
                        )),
                  ),
                  Container(height: 80.dp)
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
